Socket
Socket
Sign inDemoInstall

@shopify/polaris-tokens

Package Overview
Dependencies
Maintainers
24
Versions
851
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@shopify/polaris-tokens

[![npm version](https://img.shields.io/npm/v/@shopify/polaris-tokens.svg?style=flat)](https://www.npmjs.com/package/@shopify/polaris-tokens)


Version published
Weekly downloads
77K
decreased by-27.35%
Maintainers
24
Weekly downloads
 
Created

What is @shopify/polaris-tokens?

@shopify/polaris-tokens is a package that provides design tokens for Shopify's Polaris design system. These tokens include values for colors, spacing, typography, and other design-related properties that can be used to ensure consistency across applications built with Polaris.

What are @shopify/polaris-tokens's main functionalities?

Color Tokens

Provides a set of predefined color tokens that can be used to maintain color consistency across your application.

{
  "import": "import { color } from '@shopify/polaris-tokens';",
  "usage": "const primaryColor = color['color-primary'];"
}

Spacing Tokens

Offers a set of spacing tokens to ensure consistent spacing and layout throughout your application.

{
  "import": "import { spacing } from '@shopify/polaris-tokens';",
  "usage": "const smallSpacing = spacing['spacing-small'];"
}

Typography Tokens

Includes typography tokens for font sizes, weights, and other text-related properties to maintain typographic consistency.

{
  "import": "import { typography } from '@shopify/polaris-tokens';",
  "usage": "const baseFontSize = typography['font-size-base'];"
}

Other packages similar to @shopify/polaris-tokens

FAQs

Package last updated on 30 Jul 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc